import {INCREAEMENT,DECREAEMENT} from '../Action/ActionTypes'
const initStore=0;
export default function Count(count=initStore,action){
  const {type,data} = action
  switch(type){
    case INCREAEMENT:
      return count=count+data;
    case DECREAEMENT:
      return count=count-data;
    default:
      return count;    
  }
}